/*
 * @Author       : xiangmin
 * @File         : 命令式展示
 * @Date         : 2023-11-06 15:28:24
 * @LastEditors  : xiangmin
 * @LastEditTime : 2024-05-09 11:07:19
 */
// @ts-ignore
import drag from 'v-drag'
import { createApp } from 'vue'
import type { Preview as Props } from './index.d'
import Preview from './Preview.vue'

export default function (props: Props) {
	const container = document.createElement('div')
	const app = createApp(Preview, { ...props })
	// 注册你的指令
	// app.use(drag)
	app.mount(container)
	document.body.appendChild(container)
}
